import tkinter as tk

panels = {}

def right_panel_register(panel_name, obj):
    panels[panel_name] = obj

def right_panel_show(panel_name):
    for name, obj in panels.items():
        obj.pack_forget()
    panels[panel_name].pack(fill=tk.BOTH, expand=True)